package com.qf.mapper;

import com.qf.pojo.Device;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceMapper {
    List<Device> selectAll(@Param("page") int page,@Param("limit") int limit);

    Device selectOne(int deviceId);

    int update(Device device);

    int insert(Device device);

    int deleteOne(int deviceId);

    int deleteMul(@Param("deviceIds") List<Integer> deviceIds);

    List<Device> selectDim(@Param("page") int page, @Param("limit") int limit,@Param("deviceName") String deviceName, @Param("deviceStatus") Integer deviceStatus);

    int updateStatus(@Param("deviceId") Integer deviceId, @Param("deviceStatus") String deviceStatus);

    int updateStatusMul(@Param("deviceIds") List<Integer> deviceIds, @Param("deviceStatus") Integer deviceStatus);
}
